package SeleniumTest.page;

import org.openqa.selenium.By;

/**
 * Created with IntelliJ IDEA.
 * User: ae
 * Date: 16.07.13
 * Time: 21:23
 * To change this template use File | Settings | File Templates.
 */
public class BasePage {
    protected Navigation mainMenu;
    public HomePage logOut(){
        Browser.driver().findElement(By.xpath(".//*[@id='header-account-h']/div")).click();
        Browser.driver().findElement(By.xpath(".//*[@id='header-account-12']")).click();
        return new HomePage(Browser.driver());
        }
    public String getPageTitle() {
        return Browser.driver().getTitle();
    }
}
